package cn.com.lyj6851.modules.mp.service;

import cn.com.lyj6851.common.service.BaseService;
import cn.com.lyj6851.modules.mp.domain.YdyWechatReply;
import cn.com.lyj6851.modules.mp.service.dto.YdyWechatReplyDto;
import cn.com.lyj6851.modules.mp.service.dto.YdyWechatReplyQueryCriteria;
import org.springframework.data.domain.Pageable;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface YdyWechatReplyService  extends BaseService<YdyWechatReply> {

/**
    * 查询数据分页
    * @param criteria 条件
    * @param pageable 分页参数
    * @return Map<String,Object>
    */
    Map<String,Object> queryAll(YdyWechatReplyQueryCriteria criteria, Pageable pageable);

    /**
    * 查询所有数据不分页
    * @param criteria 条件参数
    * @return List<YdyWechatReplyDto>
    */
    List<YdyWechatReply> queryAll(YdyWechatReplyQueryCriteria criteria);

    /**
    * 导出数据
    * @param all 待导出的数据
    * @param response /
    * @throws IOException /
    */
    void download(List<YdyWechatReplyDto> all, HttpServletResponse response) throws IOException;

    YdyWechatReply isExist(String subscribe);

    void create(YdyWechatReply yxWechatReply);

    void upDate(YdyWechatReply yxWechatReply);
}
